import http from "@/utlis/request"
// 购物车列表
export const getCart = (data) => {
    return http.post("/web/kh/order/getCart", data)
}
// 加入购物车
export const addCart = (data) => {
    return http.post("/web/kh/order/addCart", data)
}
// 修改数量和切换选中状态
export const updateCart = (data) => {
    return http.post("/web/kh/order/updateCart", data)
}
// 删除购物车
export const deleteCart = (data) => {
    return http.post("/web/kh/order/deleteCart", data)
}

// 确认下单
export const createOrder = (data) => {
    return http.post("/web/kh/order/createOrder", data)
}